﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace XWord.Fundamental.Domain.Services
{
    public interface IBaseWordService
    {
        string[] GetAllWord();

        /// <summary>
        /// 
        /// </summary>
        /// <param name="word"></param>
        /// <param name="action">0 添加 1删除</param>
        void WordAction(string word, int action);
    }

    public interface IWordService
    {
        string[] GetAllWord();

        EtymaLibrary[] GetEtymaLibraryList();

        Hashtable GetDataFromBinaryFile(string fileName);

        void SaveGenericFile(string fileName, IList list);

        void SaveBinaryFile(string fileName, object ht);

        Alphabet[] GetAlphabetList();

        int[] GetWordStatisic();

        void SaveSingelEntity(string fileName, string key, object obj);

        /// <summary>
        /// 
        /// </summary>
        /// <param name="word"></param>
        /// <param name="action">0 添加 1删除</param>
        void WordAction(string word, int action);

        void SaveEtymaLibrary(string originName, EtymaLibrary etyma, int action);

        Category[] GetCategoryList();

        void AutoUpdate();
    }
}
